package com.ivt.service;

import java.util.List;
import java.util.Set;

import com.ivt.core.ex.IvtException;
import com.ivt.model.Role;
import com.ivt.model.view.QueryCriteria;

public interface RoleService {
	
	public Role create(Role role) throws IvtException;

	public Role update(Role role) throws IvtException;

	public long queryCount(QueryCriteria queryCriteria) throws IvtException;

	public List<Role> queryClassesByCriteria(QueryCriteria queryCriteria)
			throws IvtException;

	public Role delete(Long roleId) throws IvtException;
	
	public int deletes(Long[] roleIds) throws IvtException;

	public Role getRole(Long roleId) throws IvtException;

	public List<Role> getRole(Set<Long> roleId) throws IvtException;


}
